package quotation.web.kvStore.service;

import com.baomidou.mybatisplus.extension.service.IService;
import quotation.enums.KvStoreEnum;
import quotation.web.kvStore.ddd.entity.KvEntity;
import quotation.web.kvStore.ddd.form.AddKvForm;
import quotation.web.kvStore.ddd.form.UpdateKvForm;

import java.util.List;

public interface KvService extends IService<KvEntity> {

    List<KvStoreEnum> getAllEnum(String group);

    void add(AddKvForm form);

    void update(UpdateKvForm form);

    List<KvEntity> getAllKv(String group);

    String getOrDefault(KvStoreEnum kvStoreEnum);

}
